<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Code is written in a .js file, included via the script tag src attribute. -->
<script src="/path/to/example.js"></script>

<!-- Embed code directly on a web page using script tags. -->
<script>
	alert( "Hello World!" );
</script>

</head>
<body>

<!-- Inline code directly on HTML elements being clicked. -->
<a href="javascript:alert( 'Hello World' );">Click Me!</a>
<button onClick="alert( 'Good Bye World' );">Click Me Too!</button>

</body>
</html>